package com.yzh.oop5;

/**
 * @author 于振晗
 * @title: Student
 * @description: TODO 学生类this的调用
 * @date 2020年08月24日
 * @path com.yzh.oop5
 */
public class Student {
    String name;
    String sex;
    int age;
    int score = 99;
    public Student(String name,String sex,int age,int score){
//        this(name,sex,age);
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.score = score;
    }
    public Student(String name,String sex,int age){
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
    public void study(){
        System.out.println("*****Student study hard!!*****");
    }

    public void shout(){
        System.out.println("*****good good study，day day up*****");
    }
    public void eat(){
        System.out.println("*****eating..*****");
    }
    public void introduce(){
        System.out.println(this.name+"\t"+this.sex+"\t"+age+"\t"+score);
    }

    public static void main(String[] args) {
        Student student1 = new Student("小三","男",19,88);
        student1.study();
        student1.shout();
        student1.eat();
        student1.introduce();
        Student student2 = new Student("小四","女",18);
        student2.study();
        student2.shout();
        student2.eat();
        student2.introduce();
    }

}
